package com.centriole.service.workflow.service.parse.component;

/**
 *  通用节点 封装对象，对应json数据中的  "nodes":{ ... }
 *  功   能：
 *  创建人：陈默晗
 *  时   间：2018年1月3日下午2:41:17
 */
public class Node {

    private String id;
    private String name;
    private String type;
    private Property property;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Node(){}

    public Node(String id, String name, String type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }

    public Property getProperty() {
        return property;
    }

    public void setProperty(Property property) {
        this.property = property;
    }

    @Override
    public String toString() {
        return "Node{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", property=" + property +
                '}';
    }
}
